<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>模板语言学习</h1>
<div>{{ n1 }}</div>
<div>{{ n2 }}</div>
<div>{{ n2.0 }}</div>
<div>{{ n2.1 }}</div>
<div>{{ n2.2}}</div>

<div>
    {% for item in n2 %}
        {{ item }}
    {% endfor %}
</div>
<hr/>
{{n3.name}}
{{n3.sex}}
{{n3.age}}
{{n3.role}}
<div>
    {% for item in n3.keys %}
        {{ item }}
    {% endfor %}
</div>
<div>
    {% for item in n3.values %}
        {{ item }}
    {% endfor %}
</div>
<div>
    {% for k,v in n3.items %}
        {{ k }} :{{ v }}
    {% endfor %}
</div>
<hr/>
{{n4.0.name}}
{{n4.0.sex}}
{{n4.0.age}}
<div>
    {% for item in n4 %}
        {{ item.name }}
    {% endfor %}
</div>
{% if n1 == '1' %}
    <div>我是1</div>
{% elif n1 == 'csskd' %}
    <div>我是csskd</div>
{% else %}
    <div>我啥也不是</div>
{% endif %}
</body>
</html>